<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:sec="http://www.kaeppe.li/security">
<head>
  <ui:insert name="scripts">
  	<!-- Default Script -->
  	<script>
  		function load(){};
  		function GUnload(){};	
  	</script>
  </ui:insert>
  <link rel="stylesheet" href="/tt-jsf/css/travelTracker.css" />
</head>
<body onload="load()" onunload="GUnload()">
<f:view contentType="text/html">
    <div id="header">
		<h1>
			<ui:insert name="title">Default Title</ui:insert>
		</h1>
	</div>
	<div id="pageContainer">
		<div id="navigationContainer">
			Here is the menu
			<ul>
				<sec:authorize ifAllGranted="ROLE_USER">
					<li><a href="/tt-jsf/trips/listTrips.jsf">List Trips</a></li>
					<li><a href="/tt-jsf/trips/tripForm.jsf">Create Trip</a></li>
				</sec:authorize>
				<sec:authorize ifAllGranted="ROLE_ADMINISTRATOR">
					<li><a href="/tt-jsf/admin/listUsers.jsf">Manage Users</a></li>
				</sec:authorize>
			</ul>
			<ul>
				<li><a href="/tt-jsf/j_spring_security_logout">Logout</a></li>
			</ul>
		</div>
		<div id="bodyContainer">
			<ui:insert name="body">Default Body</ui:insert>
		</div>
	</div>
	<div id="footer">
	</div>
</f:view>
</body>
</html>
